//define(function(require,exports){
  angular.module('mobileApp')
      .controller('AuthCtrl',["$scope","$location","$http","$window", function ($scope,$location,$http,$window) {
          //返回登录
          $scope.back = '<a href="#/"><i class="icon-font" title="后退">&#xe61f;</i>首页</a>';

          var isLogin = false;
          $http.get(hpfbase.url+"/user/isLogin.jhtm")
              .success(function(ret){
                  if(ret.succeed){
                      isLogin = true;
                      $window.location.href="/res/static/mine.html";
                  }else{
                      $location.path("/login");
                  }
              });
      }]);
//});
